package ucm;

import java.sql.SQLException;
import model.Sale;

/**
 * UCPurchaseTicket
 *
 * Goal: Purchase Flight Ticket
 * Primary Actor: User
 * Precondition: Connected to database. User is logged in.
 * Postcondtion: User is logged in
 * 
 * @author Tobias Robinson
 */
public class UCPurchaseTicket {

    public UCPurchaseTicket() throws SQLException {
        run();
    }

    /**
     * 1. Actor selects Purchase Ticket.
     * 2. The system requests the actor to enter flight info.
     * 4. System verifies user input.
     * 5. System updates flight info.
     * 6. System notifies actor they purchased tickets.
     */
    public void run() throws SQLException {
        Sale.loadPurchaseTicketView();
    }

}
